package com.example.boot3.service;

import com.example.boot3.model.Return;
import com.example.boot3.model.Vehicle;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author 邹成明
 */
public interface VehicleService {
    List<Vehicle> getVehiclesInfoList();
    Integer addVehicle(Vehicle vehicle);

    List<Map<String,String>> getVehicleCountByFleet();
    List<Map<String,String>> getVehicleCountByStatus();
    List<Map<String,String>> getVehicleCountByType();

    List<Map<String,String>> getVehicleUseTimesList();
    List<Map<String,String>> getVehiclesMiles();

    List<Map<String,String>> getVehiclesCostList();
    Integer returnVehicle(Return returnItem);
    Integer deleteVehicle(String vehicle_id);

}
